package bancosys.tec.persist.entities.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import jmine.tec.persist.annotation.Alias;
import bancosys.tec.persist.bussobj.PersistableBusinessObject;

@Entity
@Alias("CWENTRY")
public class CWEntry extends PersistableBusinessObject {

    private Long id;

    private CWCred cred;

    private Long entityId;

    @ManyToOne
    @JoinColumn(name = "cred")
    public CWCred getCred() {
        return cred;
    }

    public void setCred(CWCred cred) {
        this.cred = cred;
    }

    @Column(name = "ENTITYID")
    public Long getEntityId() {
        return entityId;
    }

    public void setEntityId(Long entityId) {
        this.entityId = entityId;
    }

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

}
